<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/23
 * Time: 12:03
 */
namespace Admin\Model;
use  Base\Model\BaseModel;

class ProtopathyinfoModel extends BaseModel{
    protected $_validate = array(
        array('name', 'require', '名称必须填写'),
        array('name','','名称已经存在！',0,'unique',1), // 在新增的时候验证name字段是否唯一
    );
    protected $_auto = array(
        array('status', '1'),
    );


}